@extends('home.layouts._master')
@push('css')
    <link rel="stylesheet" type="text/css" href="{{asset('org/home/css')}}/ziy.css">
@endpush
@section('content')
<div class="nSearchWarp">
    <div class="hot-tj">
        <span class="icon_tj">热卖<br>推荐</span>
        <ul class="hot-list clearfix">
            @foreach($commendGoods as $good)
            <li class="item asynPriceBox">
                <p class="pic">
                    <a target="_blank" href="{{route('home.content',$good)}}"><img src="{{$good['picture'][0]}}" alt=""></a>
                </p>
                <p class="name"><a href="{{route('home.content',$good)}}" title=" {{$good['title']}}">  {{$good['title']}}</a></p>
                <p class="price asynPrice" >¥ {{$good['price']}}</p>
                <p class="btn"><a class="buy" href="{{route('home.content',$good)}}" >前往购买</a></p>
            </li>
                @endforeach
        </ul>
    </div>
</div>

<!--!!!-->
<div class="lujing_ziy">
    @foreach($fatherCategory as $father)
    <a href="{{route('home.lists',$father)}}">{{$father['title']}}</a> >
        @endforeach
        <a href="javascript:;">商品列表</a>
</div>
<div class="shangp_lieb_jvz">
    <div class="selector">
        <div class="J_selectorLine s-line J_selectorFold" >
            <div class="sl-wrap">
                <div class="sl-key">
                    <span>款式</span>
                </div>
                <div class="sl-value">
                    <div class="sl-v-list">
                        <ul class="J_valueList">
                            @foreach($sonCategory as $son)
                            <li>
                                <a href="{{route('home.lists',$son)}}"  rel='nofollow'><input type="checkbox" class="checkbox yingc_df">{{$son['title']}}</a>
                            </li>
                                @endforeach
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <hr>
    <script type="text/javascript">
        function xians()
        {
            var ddd=document.getElementById('yingc');
            if(ddd.style.display=='block')
            {
                ddd.style.display='none';
            }
            else
            {
                ddd.style.display='block';
            }
        }
    </script>
    <!--测试****************************************-->

    <!--测试****************************************-->
    <!--列表-->
    {{--@dd($collects);--}}
    <div class="shangp_lieb_yi">

        <div class="shnagp_list_v1">
            <ul>
                @foreach($goods as $good)
                <li>
                    <div class="lieb_neir_kuang">
                        <div class="lieb_img">
                            <a href="{{route('home.content',$good)}}"><img src="{{$good['picture'][0]}}" style="width: 276px;height: 209px;"></a>
                            @if($good->isColledted())
                            <div class="p_focus"><a class="J_focus" href="{{route('home.collect.make',$good)}}"><i></i>已收藏</a></div>
                            @else
                                <div class="p_focus"><a class="J_focus" href="{{route('home.collect.make',$good)}}"><i></i>收藏</a></div>
                             @endif
                        </div>
                        <div class="lieb_text">
                            <div class="p_price">
                                <strong class="J_price"><em>¥</em><i>{{$good['price']}}</i></strong>
                            </div>
                        </div>
                        <div class="shangp_biaot_"><a href="{{route('home.content',$good)}}">{{$good['title']}}</a></div>
                    </div>
                </li>
                    @endforeach
            </ul>
            <div class="page clearfix">
                {{$goods->links()}}
            </div>
        </div>
    </div>
</div>

<!--列表一结束-->
<!--猜你喜欢-->
<div class="cain_xih">
    <div class="mt">
        <h2 class="title">猜你喜欢</h2>
    </div>
    <ul class="cain_xihuan_neir">
       @foreach($likeGoods as $good)
        <li>
            <div class="item_pic"><a href="{{route('home.content',$good)}}"><img src="{{$good['picture'][0]}}"></a></div>
            <div class="cain_xih_biaot"><a href="{{route('home.content',$good)}}">{{$good['title']}}</a></div>
            <div class="cain_xih_jiaq"><p>￥{{$good['price']}}</p></div>
        </li>
       @endforeach
    </ul>
</div>
@endsection

